#include "TopologyGraphModule.h"

void AdjacencyDataConversion(const _GRAPH_EDGES __in &adj, vector<int> __out &index, vector<int> __out &edges) {
	for (std::size_t i = 0, max_i = adj.size(); i < max_i; ++i) {
		index.push_back(i == 0 ? adj[i].size() : index.back() + adj[i].size());
		edges.insert(edges.end(), adj[i].begin(), adj[i].end());
	}
}